<div id="categories_block" class="categories_block">
    <?php foreach($categories as $category): ?>
        <a id="" href="/categories/index/<?php echo $category['id']; ?>" class="category" style="margin: 0 0 0 10px;">
            <?php echo $category['name']; ?>
        </a>
        
        <?php if(isset($active_category_id) && $active_category_id == $category['id']) { ?>
            <div class="active_item"></div>
        <?php } ?>
    <?php endforeach; ?>

    <a id="" href="/blog" class="category" style="margin: 0 0 0 10px;">
        Blog
    </a>
    <?php if(isset($active) && $active == 'blog') { ?>
        <div class="active_item"></div>
    <?php } ?>
</div>

<div id="" class="" style="float: right;">
    <a id="" href="#" class="" style="margin: 0 0 0 10px;">
        Sign IN
    </a>
</div>

<div id="" class="<?php echo (isset($active) && $active == 'cart') ? 'active' : '' ?>" style="float: right;">
    <a id="" href="/cart" class="" style="margin: 0 0 0 10px;">
        Shopping CART
    </a>
</div>